import axios from 'axios'
import { defineStore } from 'pinia'
import { ref } from 'vue'
// 我的作品
export const useCounterStore = defineStore('myuser',()=>{
    const template = ref([])
    
    const gettemplate =()=>{
          const config ={
            url:'/api//v2/template/:id',
            method:'get',
            params:{
                id:JSON.parse(localStorage.getItem('id')!)
            }
          }
          axios(config).then(res=>{
            console.log(res)

          })
    }
    return{
        template,
        gettemplate

    }
})